home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / AMSample / Sources / Part.r < prev    next >
Encoding:
Text File  |  1996-06-03  |  3.2 KB  |  179 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                Part.r
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #define SystemSevenOrBetter 1            // we want the extended types
  11. #define    SystemSevenOrLater    1            // Types.r uses this variable
  12.  
  13. #include "Types.r"
  14. #include "SysTypes.r"
  15. #include "CodeFragmentTypes.r"
  16.  
  17. #ifndef __ODTYPES_R__
  18. #include "ODTypes.r"
  19. #endif
  20.  
  21. #ifndef FWBLDDEF_H
  22. #include "FWBldDef.h"
  23. #endif
  24.  
  25. #ifndef DEFINES_K
  26. #include "Defines.k"
  27. #endif
  28.  
  29. #ifndef BINDING_K
  30. #include "Binding.k"
  31. #endif
  32.  
  33. //-------------------------------------------------------------------------------------
  34. // Code Fragment Resource
  35. //-------------------------------------------------------------------------------------
  36.  
  37. resource 'cfrg' (0) {
  38.     {    /* array memberArray: 2 elements */
  39.         /* [1] */
  40. #ifdef FW_BUILD_MAC68K
  41.         kMotorola,
  42. #else
  43.         kPowerPC,
  44. #endif
  45.         kFullLib,
  46.         kNoVersionNum,
  47.         kNoVersionNum,
  48.         kDefaultStackSize,
  49.         kNoAppSubFolder,
  50.         kIsLib,
  51.         kOnDiskFlat,
  52.         kZeroOffset,
  53.         kWholeFork,
  54.         kAMSampleEditor,
  55.         /* [2] */
  56. #ifdef FW_BUILD_MAC68K
  57.         kMotorola,
  58. #else
  59.         kPowerPC,
  60. #endif
  61.         kFullLib,
  62.         kNoVersionNum,
  63.         kNoVersionNum,
  64.         kDefaultStackSize,
  65.         kNoAppSubFolder,
  66.         kIsLib,
  67.         kOnDiskFlat,
  68.         kZeroOffset,
  69.         kWholeFork,
  70.         "AMSample"
  71.     }
  72. };
  73.  
  74. //-------------------------------------------------------------------------------------
  75. // NMAP Resources
  76. //-------------------------------------------------------------------------------------
  77.  
  78. resource kODNameMappings (kKindCategoryMapId) {
  79.     kODKind,
  80.     {    /* array Types: 1 elements */
  81.         /* [1] */
  82.         kAMSampleKind,
  83.         kODIsAnISOStringList
  84.         {
  85.             {    /* array ClassIDs: 1 elements */
  86.                 /* [1] */
  87.                 kODCategoryPlainText
  88.             }
  89.         }
  90.     }
  91. };
  92.  
  93. resource kODNameMappings (kEditorKindMapId) {
  94.     kODEditorKinds,
  95.     {    /* array Types: 1 elements */
  96.         /* [1] */
  97.         kAMSampleEditor,
  98.         kODIsAnISOStringList
  99.         {
  100.             {    /* array ClassIDs: 1 elements */
  101.                 /* [1] */
  102.                 kAMSampleKind
  103.             }
  104.         }
  105.     }
  106. };
  107.  
  108. resource kODNameMappings (kEditorUserStringMapId) {
  109.     kODEditorUserString,
  110.     {    /* array Types: 1 elements */
  111.         /* [1] */
  112.         kAMSampleEditor,
  113.         kODIsINTLText
  114.         {
  115.             smRoman,
  116.             langEnglish,
  117.             kAMSampleEditorUserString
  118.         }
  119.     }
  120. };
  121.  
  122. resource kODNameMappings (kKindUserStringMapId) {
  123.     kODKindUserString,
  124.     {    /* array Types: 1 elements */
  125.         /* [1] */
  126.         kAMSampleKind,
  127.         kODIsINTLText
  128.         {
  129.             smRoman,
  130.             langEnglish,
  131.             kAMSampleKindUserString
  132.         }
  133.     }
  134. };
  135.  
  136. resource kODNameMappings (kOldMacOSTypeMapId) {
  137.     kODKindOldMacOSType,
  138.     {    /* array KeyList: 1 elements */
  139.         /* [1] */
  140.         kAMSampleKind,
  141.         kODIsMacOSType {
  142.             kAMSampleOSType
  143.         }
  144.     }
  145. };
  146.  
  147. resource kODNameMappings (kEditorPlatformKinds) {
  148.     kODEditorPlatformKind,
  149.     {    /* array KeyList: 1 elements */
  150.         /* [1] */
  151.         kAMSampleEditor,
  152.         kODIsPltfmTypeSpac {
  153.             /* array PltfmTypeSpacList: 2 elements */
  154.             {
  155.                 /* [1] */
  156.                 kODPlatformFileType, 
  157.                 kTEXTOSType, 
  158.                 smRoman, 
  159.                 langEnglish, 
  160.                 kDragKindUserString1, 
  161.                 kODCategoryPlainText,
  162.                 /* [2] */
  163.                 kODPlatformDataType, 
  164.                 kTEXTOSType, 
  165.                 smRoman, 
  166.                 langEnglish, 
  167.                 kDragKindUserString2, 
  168.                 kODCategoryPlainText
  169.             }
  170.         }
  171.     }
  172. };
  173.  
  174.  
  175. include "MacIcons.rsrc" not 'ckid';
  176.  
  177. include "MacVers.rsrc" not 'ckid';
  178.  
  179.